import request from '@/utils/request'

export function getSupplierGoods(data) {
  return request({
    url: 'api/SupplierGoods/GetAll',
    method: 'post',
    data
  })
}

export function addSupplierGood(data) {
  return request({
    url: 'api/SupplierGoods/Create',
    method: 'post',
    data
  })
}

export function updSupplierGood(data) {
  return request({
    url: 'api/SupplierGoods/Update',
    method: 'post',
    data
  })
}

export function delSupplierGood(id) {
  return request({
    url: 'api/SupplierGoods/Delete',
    method: 'post',
    params: {
      id
    }
  })
}
